import service from "./request";

// 登录接口
export const Login = (data) => {
  return service({
    url: 'sys/login',
    method: 'post',
    data
  })
}
// 验证码
export const captcha = (data)=> {
  return service({
      method: 'get',
      url: `/sys/randomImage/${data.shijian}?_t=${data.num}`,
  })
}
//切换部门

export function getuserData(params) {
    return service({
        url: `sys/user/getCurrentUserDeparts`,
        method: "get",
        params
    });
}
